<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String corpId = (String)request.getAttribute("corpId");
    String corpSecret = (String)request.getAttribute("corpSecret");
%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>我的课程-线下课程</title>
    <link href="../../lib/dropload/dropload.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/lib/layui/layui/css/layui.css">
    <script type="text/javascript" src="../../js/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="../../js/base/base.js"></script>
    <script type="text/javascript" src="../../js/ewx/waterMark.js?20190819.2"></script>
    <link href="../../css/H5/default.css" rel="stylesheet"/>
    <script type="text/javascript" src="../../lib/dropload/dropload.js"></script>
    <script src="/lib/layui/layui/layui.js"></script>
    <style>
        body{
            margin: 10px;
        }
        .right i{
            font-size: 30px
        }
        .item{
            /*box-shadow: 1px 1px 7px rgba(206, 194, 194, 0.85);*/
            border-bottom: 1px solid #E5E4E4;
            border-radius: .1rem;
            border-radius: 5px;
            padding-left: 5px;
            margin: 20px auto;
            height: 48px;
            line-height: 10px;
            padding-top: 10px;
            box-sizing: border-box;
            background: #fff;
        }
    </style>
<body>
<div class="content">
    <div class="course">

    </div>
</div>
</body>
</head>
</html>
<script>
    $.ajax({
        url:'/trCourseStage/showParent',
        type:'post',
        dataType:'json',
        success:function (res) {
            var data = res.data
            var str = ''
            for(var i=0;i<data.length;i++){
                str+='<a href="/train/offlineDetails?courseStage='+data[i].courseStage+'" style="display:block"><div class="item">\n' +
                    '           <%--右侧--%>\n' +
                    '           <div>\n' +
                    '               <i class="layui-icon layui-icon-read" style="font-size:23px;color:#999;margin-right:10px"></i><span style="font-size: 22px">'+data[i].stageName+'</span>\n' +
                    '           </div>\n' +
                    '       </div></a>'
            }
            $('.course').html(str)
        }
    })
</script>